package com.bdqn.controller;

/**
 * 状态码
 */
public class Code {
    public static final Integer GET_OK = 20010;//请求成功
    public static final Integer SAVE_OK = 20020;//保存成功
    public static final Integer UPDATE_OK = 20030;//更新成功
    public static final Integer DELETE_OK = 20040;//删除成功
    public static final Integer INSERT_OK = 29990;//注册成功

    public static final Integer GET_ERR = 20011;//请求失败
    public static final Integer SAVE_ERR = 20021;//保存失败
    public static final Integer UPDATE_ERR = 20031;//更新失败
    public static final Integer DELETE_ERR = 20041;//删除失败
    public static final Integer INSERT_ERR = 29991;//注册成功

    public static final Integer SYSTEM_ERR = 50001;//系统错误
    public static final Integer SYSTEM_TIMEOUT_ERR = 50002;//超时错误

    public static final Integer BUSINESS_ERR = 60001;//业务错误

    public static final Integer UNKNOW_ERR = 70001;//其它错误

    public static final Integer UNKNOWNACCOUNT_ERR = 80001;//用户名不存在
    public static final Integer INCORRECTCREDENTIALS_ERR = 80002;//密码


    public static final Integer UNAUTHORIZED_ERR = 90001;//权限异常
}
